package com.imu.purse.modules.trade.service;

import com.imu.purse.modules.sms.entity.SmsLogEntity;
import com.imu.purse.modules.trade.entity.UserIpEntity;
import java.util.List;

/**
 * 
 * @author sunhongwei
 * @email sunhongwei@jshijian.com
 * @date 2018-07-26 11:31:20
 * Copyright (c) 2017 武汉极时间科技有限公司 版权所有 
 * Jshijian aloha CO.,LTD. All Rights Reserved. 
 */
public interface UserIpService 
{
	/****
	 * 插入
	 * @param userIp
 	 * @date 2018-07-26 11:31:20
	 * @return
	 */
    public int save(final UserIpEntity userIp);
    
    /****
	 * 删除
	 * @param ids
 	 * @date 2018-07-26 11:31:20
	 * @return
	 */
    public boolean delete(final String... ids);
    
    /****
	 * 修改
	 * @param userIp
 	 * @date 2018-07-26 11:31:20
	 * @return
	 */
    public int update(final UserIpEntity userIp);
    
     /****
	 * 插入或跟新
	 * @param userIp
 	 * @date 2018-07-26 11:31:20
	 * @return
	 */
    public int saveUpdate(final UserIpEntity userIp);
    
    /****
	 * 根据ID查询
	 * @param id
 	 * @date 2018-07-26 11:31:20
	 * @return
	 */
    public UserIpEntity findById(final Long id);
    
    /****
   	 * 分页查询
	 * @param userIp
 	 * @date 2018-07-26 11:31:20
   	 * @return
   	 */
    public List<UserIpEntity> queryList(final UserIpEntity userIp);

	/**
	 * 根据手机号码在指定时间内短信调用的数量
	 * @param userIp
	 * @return
	 */
	public int queryCountByPhAndTime(final UserIpEntity userIp);
}
